home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / util / bsindex1 / part01 / scripts / move.scr < prev    next >
Text File  |  1990-02-02  |  1KB  |  47 lines

  1. #
  2. # Simple script to generate and execute an AmigaDOS batch file to move
  3. # all the files in a particular section into # a new common directory.
  4. #
  5.  
  6. #
  7. # Set the output file, destination directory and section no's appropriately.
  8. #
  9.  
  10. OutFile = "Move.exec"
  11. Dest    = "DH1:Somedirectory"
  12. Section    = 3
  13.  
  14. #
  15. # Use the following MV definition if you have a MV that supports moves
  16. # across disk boundaries (such as Edwin Hoogerbeets' excellent one).
  17. #
  18.  
  19. MV    = "mv %f $(Dest)"
  20.  
  21. #
  22. # Use the following MV definition if you want to use plain AmigaDOS
  23. #
  24.  
  25. # MV    = "copy %f $(Dest)\ndelete $f"
  26.  
  27. #
  28. # Now generate the list of files. We sort by directory name to try
  29. # and localise disk access
  30. #
  31.  
  32. format "$(MV)"
  33. NoRequest
  34. CheckFiles
  35. Select Online and Section = $(Section)
  36. Sort Diskname
  37. echo ";"
  38. echo "; BBSindex generated AmigaDOS batch file to move files in"
  39. echo "; section $(Section) to directory $(Dest)."
  40. echo ";"
  41. echo "; Created on %d %w %r"
  42. echo ";"
  43. list
  44. echo ";"
  45. echo 'Echo "Total of %n files moved successfully"'
  46. echo ";"
  47.